package cst.a110lyj.fragmenttest110lyj.fragment;


import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;

import cst.a110lyj.fragmenttest110lyj.R;

/**
 * A simple {@link Fragment} subclass.
 */
public class FriendFragment extends Fragment {
private View view;
    private Context context;
    private  TextView  tvinfo;



    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        context =getActivity();
        view = inflater.inflate(R.layout.ffragment,container,false);
        tvinfo = (TextView)view.findViewById(R.id.ftestview);
        tvinfo.setText("朋友");
        Toast.makeText(getActivity(),"朋友",Toast.LENGTH_SHORT).show();
        return view ;
    }

}
